package sketch.doc;

import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.List;

public class Sketch {

	private List<Stroke> strokes;

	public Sketch() {
		init();
	}

	private void init() {
		strokes = new ArrayList<Stroke>();
	}

	public void draw(Graphics2D g2) {
		for (Stroke s : strokes) {
			s.draw(g2);
		}
	}

	public void addStroke(Stroke s) {
		strokes.add(s);
	}

	public String toString() {
		StringBuffer sb = new StringBuffer();
		for (Stroke s : strokes) {
			sb.append(s.toString());
			sb.append("\n");
		}
		return sb.toString();
	}


}
